<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" action="__URL__" method="post">
	<input type="hidden" name="pageNum" value="1"/>
	<input type="hidden" name="_order" value="<?php echo ($_REQUEST["_order"]); ?>"/>
	<input type="hidden" name="_sort" value="<?php echo ($_REQUEST["_sort"]); ?>"/>
    <input type="hidden" name="numPerPage" value="<?php echo ($_REQUEST["numPerPage"]); ?>" />
</form>


<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<table>
          <tr>
           <td>备份文件名：</td>
           <td><input type="text" name="selectname" value=""/></td>
          </tr>
         </table> 
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/backData" target="ajaxTodo" mask="true"><span>备份数据</span></a></li>
			<li><a class="delete" href="__URL__/deleteBack/id/{sid_user}/navTabId/__MODULE__" target="ajaxTodo" title="你确定要删除该备份数据吗？" warn="请选择备份点"><span>删除备份</span></a></li>
			<li><a class="edit" href="__URL__/restoreBack/id/{sid_user}" target="ajaxTodo" mask="true" title="警告：还原数据库将直接覆盖目前数据库,建议您还原前先备份,您确定要还原至本备份点吗？" warn="请选择备份点"><span>还原数据</span></a></li>
			</ul>
	</div>

	<div layoutH="116" id="w_list_print">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
		<thead>
		<tr>
			<th align=center >编号</th>
			<th align=center orderField="backurl" <?php if($_REQUEST["_order"] == 'backurl'): ?>class="<?php echo ($_REQUEST["_sort"]); ?>"<?php endif; ?>>备份文件</th>
			<th align=center orderField="backtime" <?php if($_REQUEST["_order"] == 'backtime'): ?>class="<?php echo ($_REQUEST["_sort"]); ?>"<?php endif; ?>>备份时间</th>
            <th align=center orderField="backuser" <?php if($_REQUEST["_order"] == 'backuser'): ?>class="<?php echo ($_REQUEST["_sort"]); ?>"<?php endif; ?>>备份者</th>
            <th align=center>还原次数</th>        	
		</tr>
		</thead>
		<tbody>
		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr target="sid_user" rel="<?php echo ($vo['id']); ?>">
				<td align=center><?php echo ($vo['id']); ?></td>
				<td align=center><a href="__PUBLIC__/backData/<?php echo ($vo['backurl']); ?>" target="_blank"><?php echo ($vo['backurl']); ?></a></td>
				<td align=center><?php echo (date("Y-m-d  H:i:s",$vo['backtime'])); ?></td> 
                <td align=center><?php echo (gettablecolval($vo['backuser'],User,nickname)); ?></td>
                <td align=center><?php echo ($vo['rescount']); ?></td>                       
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
    </div>
	<div class="panelBar">
		<div class="pages">
			<span>共<?php echo ($totalCount); ?>条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="<?php echo ($totalCount); ?>" numPerPage="<?php echo ($numPerPage); ?>" pageNumShown="10" currentPage="<?php echo ($currentPage); ?>"></div>
	</div>

</div>